import Loadable from 'react-loadable';  //第三方库
import Loading from "../components/Loading";

const Login = Loadable({
    loader: () => import('./Login'),
    loading: Loading
})
const NotFound  = Loadable({
    loader: () => import('./NotFound'),
    loading: Loading
})
const RoomManage  = Loadable({
    loader: () => import('./RoomManage'),
    loading: Loading
})
const AddStudentInfo  = Loadable({
    loader: () => import('./RoomManage/addStudentInfo'),
    loading: Loading
})
const ModifyStudentInfo  = Loadable({
    loader: () => import('./RoomManage/modifyStudentInfo'),
    loading: Loading
})
const RentalMange = Loadable({
    loader: () => import('./RentalMange'),
    loading: Loading
})
const RentalPayment  = Loadable({
    loader: () => import('./RentalPayment'),
    loading: Loading
})
const LeaseWithdrawal = Loadable({
    loader: () => import('./LeaseWithdrawal'),
    loading: Loading
})
const Repair  = Loadable({
    loader: () => import('./Repair'),
    loading: Loading
})
const Regulations  = Loadable({
    loader: () => import('./Regulations'),
    loading: Loading
})
const RepairRecord = Loadable({
    loader:() => import('./RepairRecord'),
    loading: Loading
})
const AirInfo = Loadable({
    loader:() => import('./AirManage'),
    loading: Loading
})
const AddAirInfo = Loadable({
    loader:() => import('./AirManage/addAirInfo'),
    loading: Loading
})
const ModifyAirInfo = Loadable({
    loader:() => import('./AirManage/modifyAirInfo'),
    loading: Loading
})
const UploadStudentInfo = Loadable({
    loader: () => import('./UploadStudentInfo'),
    loading: Loading
})

const RentalProcessQuery = Loadable({
    loader: () => import('./RentalProcessQuery'),
    loading: Loading
})
const LeaseWithdrawalManage = Loadable({
    loader: () => import('./LeaseWithdrawalManage'),
    loading: Loading
})
const AddAdminPage = Loadable({
    loader: () => import('./AddAdmin'),
    loading: Loading
})

export {
    Login,
    NotFound,
    Repair,
    LeaseWithdrawal,
    RoomManage,
    RentalMange,
    RentalPayment,
    Regulations,
    RepairRecord,
    AirInfo,
    UploadStudentInfo,
    RentalProcessQuery,
    LeaseWithdrawalManage,
    AddAdminPage,
    AddAirInfo,
    ModifyAirInfo,
    AddStudentInfo,
    ModifyStudentInfo
}